import request from '@/common/utils/request'
import { setPageParams } from '@/common/utils/common'

export  function fetchList(param) {
  param = setPageParams(param)
  return request({
    url: '/platform-api/draw-infos',
    method: 'get',
    params: param
  })
}

export function createDrawInfo(data) {
  return request({
    url: '/platform-api/draw-infos',
    method: 'post',
    data
  })
}

export function updateDrawInfo(data) {
  return request({
    url: '/platform-api/draw-infos',
    method: 'put',
    data
  })
}
export function delDrawInfo(data) {
  return request({
    url: '/platform-api/draw-infos',
    method: 'delete',
    data
  })
}

export function getDrawInfo(id) {
  return request({
    url: '/platform-api/draw-infos/'+id,
    method: 'get'
  })
}
